package com.lkx.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lkx.pojo.Dish;
import org.apache.ibatis.annotations.*;

import java.util.List;

/**
 * @author likaixin
 * @ClassName com.lkx.mapper.DishMapper
 * @create 2022年11月22日 19:35
 * @desc:
 */
@Mapper
public interface DishMapper extends BaseMapper<Dish> {
    @Select("SELECT * FROM dish  d , setmeal_dish s WHERE (s.`setmeal_id`)=#{id} AND s.`dish_id`=d.id")
    List<Dish> copies(@Param("id") Long id);
}
